<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/includes/common.jsp"%>

<c:if test="${not empty action.meals}">
<c:forEach var="meal" items="${action.meals}">
	<div class="meal">
	<c:forEach var="recipe" items="${meal.recipes}">
		<div class="recipe">
			<div class="dish-image">
	            <c:choose>
	                <c:when test="${empty recipe.image}">
	                    <img src="${path}/images/dishes/${recipe.id}.jpg" />
	                </c:when>
		            <c:otherwise>
		                <img src="${path}/images/dishes/${recipe.image}" />
		            </c:otherwise>
	            </c:choose>
	        </div>
            <c:choose>
                <c:when test="${empty recipe.name}">
                	${recipe.id}
                </c:when>
	            <c:otherwise>
			        <b>${recipe.name}</b> 
	            </c:otherwise>
            </c:choose>
		</div>
	</c:forEach>
	<div class="ruler"></div>
	</div>
</c:forEach>
</c:if>